package nige.capture;

import java.awt.Color;

public class Points {
	
	public int xValue = 0;
	public int yValue = 0;
	public int zValue = 0;
	public Color colour = Color.black;
	
	public Points(int x,int y,int z,Color color) {
		xValue = x;
		yValue = y;
		zValue = z;
		colour = color;
	}
	
	public boolean equals(Points pts) {
		boolean ret = 
			(pts.xValue==xValue && 
					pts.yValue==yValue && 
						pts.zValue==zValue);
		return ret;
	}
	
	public boolean equals(Points pts,boolean aff) {
		boolean ret = 
			(pts.xValue==xValue && 
					pts.yValue==yValue && 
						pts.zValue==zValue);
		System.out.println(ret+" - "+pts+" - "+this);
		return ret;
	}

	public String toString() {
		return "x="+xValue+" y="+yValue+" z="+zValue;
	}
	
	public float distance(Points pts) {
		float dist = (float)Math.pow(Math.pow((float)pts.yValue-yValue,2)+
			Math.pow((float)pts.xValue-xValue,2),0.5);
		return dist;
	}
	
}
